package org.cangkuguanli_boot.utill;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor//无参构造方法
@AllArgsConstructor//全参构造方法
public class JsonResult<T> {
    private boolean success;     //true/false
    private int code;            //状态码
    private T data;             //成功返回的数据
    private String error;        //错误的消息
}
